<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title>store-工分商铺</title>
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">

		<link rel="stylesheet" href="css/mui.min.css">
		<style>
			html,
			body {
				background-color: #efeff4;
			}
			
			#tophead {
				padding: 0;
				margin-top: -1rem;
				font-size: 15px;
				height: 5rem;
				line-height: 5rem;
				background-color: #efeff4;
			}
			
			#myphoto {
				position: absolute;
				height: 3.5rem;
				width: 3rem;
				margin-top: 1rem;
				margin-left: 1rem;
				border-radius: 3rem;
				border: none;
			}
			
			#vip {
				position: absolute;
				z-index: 2;
				margin-top: 1rem;
				margin-left: 2rem;
				color: #FFFF00;
				display: inline-block;
			}
			
			span#account {
				position: absolute;
				color: #6d6d72;
				font-size: 20px;
				z-index: 2;
				margin-top: .5rem;
				margin-left: 5rem;
			}

			label#gongfen {
				position: absolute;
				color: #6d6d72;
				font-size: 20px;
				z-index: 2;
				margin-top: .5rem;
				margin-left: 13rem;
			}
		</style>
	</head>

	<body>
		<header class="mui-bar mui-bar-nav">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 class="mui-title">工分商铺</h1>
		</header>
		<div class="mui-content">
			<ul class="mui-table-view mui-table-view-chevron">
				<li id="tophead" class="mui-table-view-cell">
					<img class="mui-btn-link" id="myphoto" src="images/user-photo.png" />
					<div id="vip">VIP</div>
					<span id="account"></span>
		            <label id="gongfen">现有工分：<span id='gongfen_sum'></span></label>
				</li>
			</ul>		
		</div>
		<script src="js/mui.min.js"></script>
		<script src="js/webviewGroup.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/common.js"></script>
		<script src="js/app.js"></script>
		<script>
			mui.init({
				subpages: [{ //下边是初始化，然后这个页面显示将插入的激活页面
					id: "store-submain.html",
					url: "store-submain.html",
					styles: {
						top:"120px",   //子页面顶部位置
				        bottom:"0px",  //子页面底部位置
						width:"100%",  //子页面宽度
						height:"100%",  //子页面高度
				        bounce:"vertical"
					}
				}]
			});
			
			mui.plusReady(function() {
				var account = document.getElementById('account');
				var myphoto = document.getElementById('myphoto');
				var gongfen_sum = document.getElementById('gongfen_sum');
				account.innerText = plus.storage.getItem("name");
				myphoto.src = plus.storage.getItem("headimgurl");
				gongfen_sum.innerText = 72;
			});
			
			mui.back = function() {
				var _self = plus.webview.currentWebview();
				_self.close("auto");
			}
		</script>
	</body>

</html>